/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除 POST /api/employee/deleteData */
export async function apiEmployeeDeleteDataUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployeeBoApiEmployeeDeleteData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/employee/deleteData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取 POST /api/employee/getData */
export async function apiEmployeeGetDataUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployee;
  options?: { [key: string]: unknown };
}) {
  return request<API.RApiEmployee>('/api/employee/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /api/employee/getPage */
export async function apiEmployeeGetPageUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployeeBoApiEmployeeGetPage;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoApiEmployee>('/api/employee/getPage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 重置密码 POST /api/employee/resetPassword */
export async function apiEmployeeResetPasswordUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployeeBoApiEmployeeResetPassword;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/employee/resetPassword', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 保存 POST /api/employee/saveData */
export async function apiEmployeeSaveDataUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployeeBoApiEmployeeSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/api/employee/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改 POST /api/employee/updateData */
export async function apiEmployeeUpdateDataUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployeeBoApiEmployeeUpdateData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/api/employee/updateData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改密码 POST /api/employee/updatePassword */
export async function apiEmployeeUpdatePasswordUsingPost({
  body,
  options,
}: {
  body: API.ApiEmployeeBoApiEmployeeUpdatePassword;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/employee/updatePassword', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
